﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Admin_Pages_ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        Change Password</h1>
    <div class="mainquoc">
        <div class="quoclable">
            <asp:Label ID="lbPassword" runat="server" Text="Password Old:"></asp:Label>
        </div>
        <div class="quocinput_detail">
            <asp:TextBox ID="txtPasswordOld" runat="server" CssClass="text" TextMode="Password"
                Width="350" Height="25" placeholder="Enter your old password."></asp:TextBox>
            <div>
                <asp:RequiredFieldValidator ID="valPassOld" runat="server" ErrorMessage="Password Old is required."
                    ControlToValidate="txtPasswordOld" ForeColor="Red" ></asp:RequiredFieldValidator>
            </div>
        </div>
    </div>
    <div class="mainquoc">
        <div class="quoclable">
            <asp:Label ID="Label1" runat="server" Text="Pass New:"></asp:Label>
        </div>
        <div class="quocinput_detail">
            <asp:TextBox ID="txtPasswordNew" runat="server" CssClass="text" TextMode="Password"
                Width="350" Height="25" placeholder="Enter your new password."></asp:TextBox>
            <div>
                <p>
                    <asp:RequiredFieldValidator ID="valPassNew" runat="server" ErrorMessage="Password New is required."
                        ControlToValidate="txtPasswordNew" ForeColor="Red"></asp:RequiredFieldValidator>
                </p>
                <p>
                    <asp:RegularExpressionValidator ID="valRexPassNew" runat="server" ErrorMessage="Password must be 4-12 nonblank characters."
                        ValidationExpression="[^\s]{4,12}" ControlToValidate="txtPasswordNew" ForeColor="Red"></asp:RegularExpressionValidator>
                </p>
            </div>
        </div>
    </div>
    <div class="mainquoc">
        <div class="quoclable">
            <asp:Label ID="Label2" runat="server" Text="Confirm Pass:"></asp:Label>
        </div>
        <div class="quocinput_detail">
            <asp:TextBox ID="txtConfirm" runat="server" CssClass="text" TextMode="Password" Width="350" Height="25" placeholder="Re-Enter your new password."></asp:TextBox>
            <div>
                <p>
                    <asp:RequiredFieldValidator ID="valConfirm" runat="server" ErrorMessage="Re-enter password is required."
                        ControlToValidate="txtConfirm" ForeColor="Red"></asp:RequiredFieldValidator></p>
                <p>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Passwords do not match."
                        ControlToValidate="txtConfirm" ControlToCompare="txtPasswordNew" ForeColor="Red"></asp:CompareValidator></p>
            </div>
        </div>
    </div>
    <div class="Control">
        <ul>
            <li>
                <asp:LinkButton runat="server" CssClass="uupdate" ID="btnOk" OnClick="btnOk_Click" CausesValidation="False">Update</asp:LinkButton>
            </li>
            <li>
                <asp:LinkButton runat="server" CssClass="uback" ID="btnBack" OnClick="btnBack_Click" CausesValidation="False">Back</asp:LinkButton>
            </li>
        </ul>
    </div>
</asp:Content>
